package com.hwadee.teachingprocessmanagementsystem.controller.teacher;

import com.hwadee.teachingprocessmanagementsystem.dto.student.StudentCourseInfoDto;
import com.hwadee.teachingprocessmanagementsystem.dto.teacher.TeacherAssessmentMethodDto;
import com.hwadee.teachingprocessmanagementsystem.dto.teacher.TeacherDataStatisticsDto;
import com.hwadee.teachingprocessmanagementsystem.entity.AssessmentMethod;
import com.hwadee.teachingprocessmanagementsystem.entity.Student;
import com.hwadee.teachingprocessmanagementsystem.entity.Teacher;
import com.hwadee.teachingprocessmanagementsystem.service.teacher.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.hwadee.teachingprocessmanagementsystem.util.result.DataResult;

import java.util.List;

/**
 * @Description: 教师考务管理控制器，负责教师考务管理信息的请求
 * @Author: Jukomu
 * @Package: com.hwadee.teachingprocessmanagementsystem.controller.student
 * @Project: TeachingProcessManagementSystem
 * @name: ExamController
 * @Date: 2024/7/12-9:03
 * @Filename: ExamController
 */
@RestController("TeacherExamController")
@RequestMapping("teacher/exam")
public class ExamController {
    @Autowired
    private TeacherService teacherService;
    /**
     * 考试安排
     * @return
     */
    @RequestMapping("info/arrangement")
    public DataResult arrangement() {
        return DataResult.succ();
    }

    /**
     * 补考安排
     * @return
     */
    @RequestMapping("info/makeup-arrangement")
    public DataResult makeupArrangement() {
        return DataResult.succ();
    }

    /**
     * 重修考试
     * @return
     */
    @RequestMapping("info/retake-arrangement")
    public DataResult retakeArrangement() {
        return DataResult.succ();
    }

    /**
     * 考试数据统计
     * @return
     */
    @RequestMapping("info/data-statistics")
    public DataResult dataStatistics(@RequestParam("course-id") String courseId) {

        TeacherDataStatisticsDto teacherDataStatisticsDto=this.teacherService.getTeacherDataStatistics(courseId);
        return DataResult.successByData(teacherDataStatisticsDto);
    }

    /**
     * 考核方式申报
     * @return
     */
    @RequestMapping("assessment-method")
    public DataResult assessmentMethod() {

        TeacherAssessmentMethodDto teacherAssessmentMethodDto=this.teacherService.getAssessmentMethodDto();
        return DataResult.successByData(teacherAssessmentMethodDto);
    }

    /**
     * 排课
     * @return
     */
    @RequestMapping("course-scheduling")
    public DataResult courseScheduling() {
        return DataResult.succ();
    }
}
